<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
   xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:pb="http://b2b.pb.com/tags">

<ui:composition template="/template/MainTemplate.xhtml">
   <ui:define name="body">
      <pb:saveBean beanName="languageBean" bean="#{languageBean}" />

      <p:panel header="#{languageBundle.create_laguage_tbl_header}">
         <p:panelGrid columns="2" styleClass="zebra">
            <h:outputText value="#{languageBundle.lbl_language_name} " />
            <p:inputText id="name" value="#{languageBean.selectedLanguage.name}" maxlength="30" />
            <h:outputText value="#{languageBundle.lbl_language_code}" />
            <p:inputText id="code" value="#{languageBean.selectedLanguage.code}" maxlength="2" />
            <h:outputText value="#{languageBundle.lbl_language_status}" />
            <p:selectBooleanButton value="#{languageBean.status}" onLabel="Aktif" offLabel="Pasif" onIcon="ui-icon-check" offIcon="ui-icon-close"/>  
         </p:panelGrid>
      </p:panel>

      <div class="btnRight marginTop7">
         <p:commandButton value="#{appbundle.btn_continue}" ajax="false" action="#{languageBean.confirmAction}"
            styleClass="btn100" />
      </div>

   </ui:define>
</ui:composition>
</html>